home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / falcon / programm.ing / nt_dsp1.lzh / NT_DSP1.MSA / SORT / SORT1T.ASM < prev    next >
Assembly Source File  |  1989-01-24  |  719b  |  31 lines

  1. ;
  2. ; This program originally available on the Motorola DSP bulletin board.
  3. ; It is provided under a DISCLAIMER OF WARRANTY available from
  4. ; Motorola DSP Operation, 6501 Wm. Cannon Drive W., Austin, Tx., 78735.
  5. ;
  6. ; sort1t.asm - test program to
  7. ; sort by straight selection 
  8. ; (most efficient for smaller arrays)
  9. ; Last Update 11 Sep 87   Version 1.0
  10. ;
  11. ;
  12.  
  13.         page    132,66,3,3
  14.         opt     nomd,mex,cre,cex,mu,rc
  15.  
  16.  
  17.         include 'sort1.asm'
  18.  
  19. ; sort this list of items in x memory space
  20.         org     x:$0
  21. LIST    dc      44,55,12,42,94,18,06,67
  22.  
  23. ; main program to call SORT1 macro
  24.  
  25.         org     p:$40
  26.         sort1   LIST,8          ;sort the list of 8 items
  27.  
  28.         end
  29.  
  30.